import request from '@/utils/request'

export default {
  listPage(page, limit, searchObj) {
    return request({
      url: `/flac/userInfo/listPage/${page}/${limit}`,
      method: 'post',
      data: searchObj
    })
  },

  getInfoById(id) {
    return request({
      url: `/flac/userInfo/getInfoById/${id}`,
      method: 'get'
    })
  },

  removeById(id) {
    return request({
      url: `/flac/userInfo/removeById/${id}`,
      method: 'get'
    })
  },

  foreverRemove(id) {
    return request({
      url: `/flac/userInfo/foreverRemove/${id}`,
      method: 'get'
    })
  },

  resumeById(id) {
    return request({
      url: `/flac/userInfo/resumeById/${id}`,
      method: 'get'
    })
  },

  updateById(detailObj) {
    return request({
      url: `/flac/userInfo/updateById`,
      method: 'post',
      data: detailObj
    })
  },

  insertUserInfo(insertObj) {
    return request({
      url: `/flac/userInfo/insertUserInfo`,
      method: 'post',
      data: insertObj
    })
  },

  initPassword(userAccount) {
    return request({
      url: `/flac/userInfo/initPassword`,
      method: 'get',
      params: userAccount
    })
  },

  getPieData() {
    return request({
      url: `/flac/userInfo/getPieData`,
      method: 'get'
    })
  }
}
